unit U_frm_slpash;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Samples.Gauges, Vcl.StdCtrls,
  Vcl.ComCtrls, Vcl.ExtCtrls, Vcl.Imaging.pngimage, Vcl.Imaging.jpeg;

type
  Tfrm_slpash = class(TForm)
    Panel1: TPanel;
    Image1: TImage;
    lbl1: TLabel;
    lbl2: TLabel;
    lbl3: TLabel;
    pbbar: TProgressBar;
    lbl4: TLabel;
    procedure FormActivate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frm_slpash: Tfrm_slpash;

implementation

{$R *.dfm}

procedure Tfrm_slpash.FormActivate(Sender: TObject);
var
i:integer;
begin

    pbbar.Position:=0;
 for I := 1to pbbar.Max do
   begin
     Self.Repaint;
    pbbar.Position:=pbbar.Position +i;
     Sleep(20);

   end;

end;

end.
